Optimal. Leaf size=313 \[ \frac {2 \left (5 a^2+3 b^2\right ) \cos (c+d x)}{3 a^2 b^2 d \sqrt {a+b \sin (c+d x)}}-\frac {2 \left (a^2-b^2\right ) \cos (c+d x)}{3 a b^2 d (a+b \sin (c+d x))^{3/2}}-\frac {2 \left (8 a^2+b^2\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}} F\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{3 a b^3 d \sqrt {a+b \sin (c+d x)}}+\frac {2 \left (8 a^2+3 b^2\right ) \sqrt {a+b \sin (c+d x)} E\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{3 a^2 b^3 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}+\frac {2 \sqrt {\frac {a+b \sin (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{a^2 d \sqrt {a+b \sin (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.68, antiderivative size = 313, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 9, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.310, Rules used = {2891, 3059, 2655, 2653, 3002, 2663, 2661, 2807, 2805} \[ \frac {2 \left (5 a^2+3 b^2\right ) \cos (c+d x)}{3 a^2 b^2 d \sqrt {a+b \sin (c+d x)}}-\frac {2 \left (a^2-b^2\right ) \cos (c+d x)}{3 a b^2 d (a+b \sin (c+d x))^{3/2}}-\frac {2 \left (8 a^2+b^2\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}} F\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{3 a b^3 d \sqrt {a+b \sin (c+d x)}}+\frac {2 \left (8 a^2+3 b^2\right ) \sqrt {a+b \sin (c+d x)} E\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{3 a^2 b^3 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}+\frac {2 \sqrt {\frac {a+b \sin (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{a^2 d \sqrt {a+b \sin (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2653
Rule 2655
Rule 2661
Rule 2663
Rule 2805
Rule 2807
Rule 2891
Rule 3002
Rule 3059
Rubi steps
\begin {align*} \int \frac {\cos ^3(c+d x) \cot (c+d x)}{(a+b \sin (c+d x))^{5/2}} \, dx &=-\frac {2 \left (a^2-b^2\right ) \cos (c+d x)}{3 a b^2 d (a+b \sin (c+d x))^{3/2}}+\frac {2 \left (5 a^2+3 b^2\right ) \cos (c+d x)}{3 a^2 b^2 d \sqrt {a+b \sin (c+d x)}}-\frac {4 \int \frac {\csc (c+d x) \left (-\frac {3 b^2}{4}-\frac {1}{2} a b \sin (c+d x)-\frac {1}{4} \left (8 a^2+3 b^2\right ) \sin ^2(c+d x)\right )}{\sqrt {a+b \sin (c+d x)}} \, dx}{3 a^2 b^2}\\ &=-\frac {2 \left (a^2-b^2\right ) \cos (c+d x)}{3 a b^2 d (a+b \sin (c+d x))^{3/2}}+\frac {2 \left (5 a^2+3 b^2\right ) \cos (c+d x)}{3 a^2 b^2 d \sqrt {a+b \sin (c+d x)}}+\frac {4 \int \frac {\csc (c+d x) \left (\frac {3 b^3}{4}-\frac {1}{4} a \left (8 a^2+b^2\right ) \sin (c+d x)\right )}{\sqrt {a+b \sin (c+d x)}} \, dx}{3 a^2 b^3}-\frac {\left (-8 a^2-3 b^2\right ) \int \sqrt {a+b \sin (c+d x)} \, dx}{3 a^2 b^3}\\ &=-\frac {2 \left (a^2-b^2\right ) \cos (c+d x)}{3 a b^2 d (a+b \sin (c+d x))^{3/2}}+\frac {2 \left (5 a^2+3 b^2\right ) \cos (c+d x)}{3 a^2 b^2 d \sqrt {a+b \sin (c+d x)}}+\frac {\int \frac {\csc (c+d x)}{\sqrt {a+b \sin (c+d x)}} \, dx}{a^2}-\frac {\left (8 a^2+b^2\right ) \int \frac {1}{\sqrt {a+b \sin (c+d x)}} \, dx}{3 a b^3}-\frac {\left (\left (-8 a^2-3 b^2\right ) \sqrt {a+b \sin (c+d x)}\right ) \int \sqrt {\frac {a}{a+b}+\frac {b \sin (c+d x)}{a+b}} \, dx}{3 a^2 b^3 \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}\\ &=-\frac {2 \left (a^2-b^2\right ) \cos (c+d x)}{3 a b^2 d (a+b \sin (c+d x))^{3/2}}+\frac {2 \left (5 a^2+3 b^2\right ) \cos (c+d x)}{3 a^2 b^2 d \sqrt {a+b \sin (c+d x)}}+\frac {2 \left (8 a^2+3 b^2\right ) E\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {a+b \sin (c+d x)}}{3 a^2 b^3 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}+\frac {\sqrt {\frac {a+b \sin (c+d x)}{a+b}} \int \frac {\csc (c+d x)}{\sqrt {\frac {a}{a+b}+\frac {b \sin (c+d x)}{a+b}}} \, dx}{a^2 \sqrt {a+b \sin (c+d x)}}-\frac {\left (\left (8 a^2+b^2\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}\right ) \int \frac {1}{\sqrt {\frac {a}{a+b}+\frac {b \sin (c+d x)}{a+b}}} \, dx}{3 a b^3 \sqrt {a+b \sin (c+d x)}}\\ &=-\frac {2 \left (a^2-b^2\right ) \cos (c+d x)}{3 a b^2 d (a+b \sin (c+d x))^{3/2}}+\frac {2 \left (5 a^2+3 b^2\right ) \cos (c+d x)}{3 a^2 b^2 d \sqrt {a+b \sin (c+d x)}}+\frac {2 \left (8 a^2+3 b^2\right ) E\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {a+b \sin (c+d x)}}{3 a^2 b^3 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {2 \left (8 a^2+b^2\right ) F\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{3 a b^3 d \sqrt {a+b \sin (c+d x)}}+\frac {2 \Pi \left (2;\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{a^2 d \sqrt {a+b \sin (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 5.18, size = 443, normalized size = 1.42 \[ -\frac {\frac {2 a^2 \left (a^2-b^2\right ) \cos (c+d x)}{(a+b \sin (c+d x))^{3/2}}-\frac {2 a \left (5 a^2+3 b^2\right ) \cos (c+d x)}{\sqrt {a+b \sin (c+d x)}}+\frac {a \left (8 a^2+9 b^2\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}} \Pi \left (2;\frac {1}{4} (-2 c-2 d x+\pi )|\frac {2 b}{a+b}\right )}{\sqrt {a+b \sin (c+d x)}}+\frac {i \left (8 a^2+3 b^2\right ) \sec (c+d x) \sqrt {-\frac {b (\sin (c+d x)-1)}{a+b}} \sqrt {\frac {b (\sin (c+d x)+1)}{b-a}} \left (b \left (b \Pi \left (\frac {a+b}{a};i \sinh ^{-1}\left (\sqrt {-\frac {1}{a+b}} \sqrt {a+b \sin (c+d x)}\right )|\frac {a+b}{a-b}\right )-2 a F\left (i \sinh ^{-1}\left (\sqrt {-\frac {1}{a+b}} \sqrt {a+b \sin (c+d x)}\right )|\frac {a+b}{a-b}\right )\right )-2 a (a-b) E\left (i \sinh ^{-1}\left (\sqrt {-\frac {1}{a+b}} \sqrt {a+b \sin (c+d x)}\right )|\frac {a+b}{a-b}\right )\right )}{b^2 \sqrt {-\frac {1}{a+b}}}+\frac {4 a^2 b \sqrt {\frac {a+b \sin (c+d x)}{a+b}} F\left (\frac {1}{4} (-2 c-2 d x+\pi )|\frac {2 b}{a+b}\right )}{\sqrt {a+b \sin (c+d x)}}}{3 a^3 b^2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 73.82, size = 0, normalized size = 0.00 \[ {\rm integral}\left (-\frac {\sqrt {b \sin \left (d x + c\right ) + a} \cos \left (d x + c\right )^{3} \cot \left (d x + c\right )}{3 \, a b^{2} \cos \left (d x + c\right )^{2} - a^{3} - 3 \, a b^{2} + {\left (b^{3} \cos \left (d x + c\right )^{2} - 3 \, a^{2} b - b^{3}\right )} \sin \left (d x + c\right )}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cos \left (d x + c\right )^{3} \cot \left (d x + c\right )}{{\left (b \sin \left (d x + c\right ) + a\right )}^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 6.70, size = 1375, normalized size = 4.39 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cos \left (d x + c\right )^{3} \cot \left (d x + c\right )}{{\left (b \sin \left (d x + c\right ) + a\right )}^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\cos \left (c+d\,x\right )}^3\,\mathrm {cot}\left (c+d\,x\right )}{{\left (a+b\,\sin \left (c+d\,x\right )\right )}^{5/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________